﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frmProductPriceNews.aspx.cs" Inherits="Admin72H.Controls.ProductPriceNews.frmProductPriceNews" %>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link href="/CSS/Style.css" rel="stylesheet" type="text/css" />
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <script language ="javascript" type ="text/javascript" >   
    function GetRadWindow()      
        {      
            var oWindow = null;      
            if (window.radWindow)
                oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog      
            else if (window.frameElement.radWindow)
                oWindow = window.frameElement.radWindow;//IE (and Moz as well)      
            return oWindow;                
        }      
     
        function Close()      
        {
            var arg = new Object();
            arg.Modified = document.getElementById('<%=hdModified.ClientID %>').value;
            GetRadWindow().Close(arg);
        }           
</script> 
</head>
<body>
    <form id="form1" runat="server">
     <asp:ToolkitScriptManager ID="ScriptManager1" runat="server">
     </asp:ToolkitScriptManager>
    <asp:UpdatePanel runat="server" ID="updatePanel1" RenderMode="Inline" UpdateMode="Conditional">
    <ContentTemplate>       
        <asp:Panel ID="Panel1" DefaultButton="btnSave"  runat="server" >
            <br />
            <table style="width:100%; ">                                                                                            
                    <tr>
                        <td></td>  
                        <td align="left">
                            &nbsp;&nbsp;&nbsp;&nbsp; ID:
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtId" Runat="server" Width="200px" 
                                Enabled="False"></asp:TextBox>                                                           
                        </td>
                    </tr>
                    <tr>
                        <td></td>  
                        <td align="left">
                            &nbsp;&nbsp;&nbsp;&nbsp; Tên sản phẩm:
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtName" Runat="server" Width="200px"></asp:TextBox>                                                           
                            <asp:RequiredFieldValidator ID="rqfPassword" ControlToValidate="txtName" runat="server" ErrorMessage="(*)" ValidationGroup="ProductPriceNews" ></asp:RequiredFieldValidator>
                        </td>
                    </tr>                    
                    <tr>
                        <td></td>  
                        <td align="left">
                            &nbsp;&nbsp;&nbsp;&nbsp; Giá:
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtPrice" Runat="server" Width="200px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                                ControlToValidate="txtPrice" ErrorMessage="(*)" SetFocusOnError="true" 
                                ValidationExpression="^[0-9]+$" ValidationGroup="ProductPriceNews"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td >
                        </td>
                        <td align="left">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loại sản phẩm:
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlProduct" runat="server" Width="205px" Enabled="true">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td >
                        </td>
                        <td align="left">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loại giá:
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlPriceType" runat="server" Width="205px" Enabled="true">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td >
                        </td>
                        <td align="left">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Nguồn:
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlCity" runat="server" Width="205px" Enabled="true">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 20px;" align="center" colspan="3">
                            <strong>                                                
                            <asp:Label ID="lblStatus" runat="server" CssClass="sm_error" ></asp:Label>
                            </strong>
                        </td>                                                             
                    </tr>                                                  
                    <tr>                                                           
                       <td align="center" colspan="3">                                                                                                                          
                           <asp:Button ID="btnSave" runat="server" CssClass="Submit" Text="Lưu" ValidationGroup="ProductPriceNews" onclick="btnSave_Click" />&nbsp;
                           <asp:Button ID="btnReset" CssClass="Submit" runat="server" Text="Nhập lại" 
                               onclick="btnReset_Click"  />&nbsp;
                           <asp:Button ID="btnCancel" CssClass="Submit" runat="server" Text="Đóng" OnClientClick="Close()"  />
                       </td>   
                   </tr>
                   <tr>                                                           
                       <td align="center" colspan="3">
                        <br />  
                             <asp:UpdateProgress ID="UpdateProgress2"  runat="server" DisplayAfter="10" DynamicLayout="false">
                                    <ProgressTemplate>
                                        <span>
                                           <asp:Image alt="" ID="imgLoading" ImageUrl="~/images/loader2.gif" runat="server" /></span>
                                    </ProgressTemplate>
                              </asp:UpdateProgress>
                       </td>                                                                                                                                                         
                   </tr>                                                  
            </table>
            <asp:HiddenField ID="hdModified" runat="server" />
        </asp:Panel>    
    </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
